import unittest
from DirExample.BasicDirExample import BasicDirExample

class BasicDirExample_Test(unittest.TestCase):

    def setUp(self):
        """Call before every test case."""
        self.basicDirExample = BasicDirExample()

    def tearDown(self):
        self.basicDirExample.__del__()

    def testA(self):
        assert self.basicDirExample.getValue() == 0, "Default getValue() not 0"

    def testB(self):
        self.basicDirExample.setValue(2)
        assert self.basicDirExample.getValue() == 2, "getValue() did not return 2"

if __name__ == "__main__":
    unittest.main()
